package com.ruoyi.web.TemuFzProductRestriction.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.TemuFzProductRestriction.mapper.TemuFzProductRestrictionMapper;
import com.ruoyi.web.TemuFzProductRestriction.domain.TemuFzProductRestriction;
import com.ruoyi.web.TemuFzProductRestriction.service.ITemuFzProductRestrictionService;

/**
 * TemuFzProductRestrictionService业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class TemuFzProductRestrictionServiceImpl implements ITemuFzProductRestrictionService 
{
    @Autowired
    private TemuFzProductRestrictionMapper temuFzProductRestrictionMapper;

    /**
     * 查询TemuFzProductRestriction
     * 
     * @param id TemuFzProductRestriction主键
     * @return TemuFzProductRestriction
     */
    @Override
    public TemuFzProductRestriction selectTemuFzProductRestrictionById(Integer id)
    {
        return temuFzProductRestrictionMapper.selectTemuFzProductRestrictionById(id);
    }

    /**
     * 查询TemuFzProductRestriction列表
     * 
     * @param temuFzProductRestriction TemuFzProductRestriction
     * @return TemuFzProductRestriction
     */
    @Override
    public List<TemuFzProductRestriction> selectTemuFzProductRestrictionList(TemuFzProductRestriction temuFzProductRestriction)
    {
        return temuFzProductRestrictionMapper.selectTemuFzProductRestrictionList(temuFzProductRestriction);
    }

    /**
     * 新增TemuFzProductRestriction
     * 
     * @param temuFzProductRestriction TemuFzProductRestriction
     * @return 结果
     */
    @Override
    public int insertTemuFzProductRestriction(TemuFzProductRestriction temuFzProductRestriction)
    {

        return temuFzProductRestrictionMapper.insertTemuFzProductRestriction(temuFzProductRestriction);
    }

    /**
     * 修改TemuFzProductRestriction
     * 
     * @param temuFzProductRestriction TemuFzProductRestriction
     * @return 结果
     */
    @Override
    public int updateTemuFzProductRestriction(TemuFzProductRestriction temuFzProductRestriction)
    {

        return temuFzProductRestrictionMapper.updateTemuFzProductRestriction(temuFzProductRestriction);
    }

    /**
     * 批量删除TemuFzProductRestriction
     * 
     * @param ids 需要删除的TemuFzProductRestriction主键
     * @return 结果
     */
    @Override
    public int deleteTemuFzProductRestrictionByIds(Integer[] ids)
    {
        return temuFzProductRestrictionMapper.deleteTemuFzProductRestrictionByIds(ids);
    }

    /**
     * 删除TemuFzProductRestriction信息
     * 
     * @param id TemuFzProductRestriction主键
     * @return 结果
     */
    @Override
    public int deleteTemuFzProductRestrictionById(Integer id)
    {
        return temuFzProductRestrictionMapper.deleteTemuFzProductRestrictionById(id);
    }

    @Override
    public int insdatas(List<TemuFzProductRestriction> list) {
        return temuFzProductRestrictionMapper.insdatas(list);
    }
}
